<?php
session_start();

require_once("database.include.php");

	$userName = $_GET['userName'];
	$groupName = $_GET['groupName'];
			
	$sql = ' SELECT `encrypted_group_private_key` '
		    . ' FROM `group_user` '
			. ' WHERE `group_user`.user_name = ' . "'" . $userName . "'"
			. ' AND `group_user`.group_name = ' . "'" . $groupName . "'";;
				
	//print $sql;
	
    foreach ($conn->query($sql) as $row) {
    	print $row['encrypted_group_private_key'];
    }

?>